package com.day12Test;

public class Method {
	public static void main(String[] args) {
		int[] arr = {10,15};
		
		change(arr);
		print(arr);
		
		
		
	}
	
	public static void change(int[] arr) {
			int temp = 0;
			temp = arr[0];
			arr[0] = arr[1];
			arr[1] = temp;
			
	}
	public static void print(int[] arr) {
			for(int i :arr) {
				System.out.println(i+" ");
			}
			System.out.println();
	}
	
}
